package com.dfrz.service.impl;

import com.dfrz.dao.UserDao;
import com.dfrz.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.ManagedBean;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;

//@Service
//@ManagedBean
@Named
public class UserServiceImpl implements UserService {

//    @Autowired
//    @Resource
    @Inject @Named(value = "myDao")
    UserDao userDao;

    @Override
    public void save() {
        userDao.save();
        System.out.println("UserServiceImpl.save().");
    }
}
